package com.cwd.arm.domain.entity;

import com.cwd.arm.common.util.BigDecimalUtil;
import com.cwd.arm.domain.entity.base.AmountTotalEntity;
import lombok.Data;

import java.math.BigDecimal;

/**
 * Description:项目每月统计
 * Created on 2021年11月16日
 *
 * @author yan
 */
@Data
public class ProjectMonthAmountTotalEntity extends AmountTotalEntity{

    /**
     * 项目id
     */
    private Long projectId;


    public void addReceivableAmount(BigDecimal amount) {
        receivableAmount = BigDecimalUtil.add(receivableAmount,amount);
    }

    public void addReceivedAmount(BigDecimal amount) {
        receivedAmount = BigDecimalUtil.add(receivedAmount,amount);
    }


    public void addConfirmAmount(BigDecimal amount){
        confirmAmount = BigDecimalUtil.add(confirmAmount,amount);
    }

    public void addExpectPayAmount(BigDecimal amount){
        expectPayAmount = BigDecimalUtil.add(expectPayAmount,amount);
    }

    public void addActualPayAmount(BigDecimal amount){
        actualPayAmount = BigDecimalUtil.add(actualPayAmount,amount);
    }




}
